package io.zerous.gravitation

import io.zerous.engine.math.*

/**
 * Created by Zerous on 2018/9/23.
 */
class Particle(val position: Vector2, val mass: Float = 10f,  val velocity: Vector2 = Vector2()) {
    val acceleration = Vector2()
    fun addForce(f: Vector2) {
        acceleration += (f / mass)
    }
}